<template>
  <basic-crud :option="option">
    <template #status="{ row }">
      <basic-tag v-model="row.status"></basic-tag>
    </template>
  </basic-crud>
</template>

<script setup>
const option = {
  viewBtn: true,
  searchSpan: 8,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  viewBtn: true,
  menuWidth: 120,
  column: [
    {
      label: '编号',
      prop: 'code',
      search: true,
      width: 200,
      sortable: true,
      rules: [{ required: true, message: '编号不能为空', trigger: 'blur' }],
    },
    {
      label: '名称',
      prop: 'name',
      width: 200,
      search: true,
      sortable: true,
      rules: [{ required: true, message: '名称不能为空', trigger: 'blur' }],
    },
    {
      label: '服务编号',
      prop: 'serviceCode',
      search: true,
      width: 180,
      sortable: true,
    },
    {
      label: '服务名称',
      prop: 'serviceName',
      width: 200,
      search: true,
      sortable: true,
    },
    {
      label: '类路径',
      prop: 'classFullName',
      search: true,
      sortable: true,
    },
  ],
}
</script>

<style lang="scss" scoped></style>
